<style type="text/css">
<!--
    div.zone { border: none; border-radius: 1mm; background: #e9e9e9; border-collapse: collapse;padding:1mm;}
    h1 { padding: 0; margin: 0; color: #DD0000;}
    h2 { padding: 0; margin: 0; color: #222222; font-size: 5mm; position: relative; }
    h3 { padding: 0; margin: 0; color: #DD0000; font-size: 5mm;}
-->
</style>
<page format="200x290" orientation="L" backcolor="#e9e9e9" style="font: arial;color:green;">
    <table style="width: 100%;border: none;margin-left:0mm;margin-top:2mm" cellspacing="4mm" cellpadding="0">
        <tr>
            <td align="center" colspan="2">
                <table style="border-bottom:4px double green;color:green;align:center;margin：10 auto;position: relative;left:28%;font-size:8mm" cellspacing="1" cellpadding="0">
                    <tr>
                        <td><?php if($cqdd==1): ?>重庆广播电视大学<?php else:?>重庆广播电视大学    重庆工商职业学院<?php endif;?></td>
                    </tr>
                    <tr>
                        <td><?php echo date('Y',time())."年校级教改项目申报汇总表"?></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <table  style="color:green;align:center;margin：0 auto;position: relative;left:10%;font-size:6mm;margin-top:10mm;" cellspacing="0" cellpadding="0">
                    <tr>
                        <td><?php if($cqdd==1): ?>各校本部、区县电大或电大分校负责人签字:__________     部门盖章：<?php else:?>二级学院负责人签字:__________    部门盖章：_________<?php endif;?></td>
                        <td>汇总日期：<?=date("Y年m月d日",time())?></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" style="width:280mm;">
                <table style="align:center;width:280mm;position: relative;left:10mm;margin：0 auto;font-size:4mm;" cellspacing="0" cellpadding="1">
                    <tr>
                        <td style="width:7mm;align:center;border:1px solid green;">序号</td>
                        <td style="width:85mm;align:center;border:1px solid green;">项目名称</td>
                        <td style="width:20mm;align:center;border:1px solid green;">所属科类</td>
                        <td style="width:15mm;align:center;border:1px solid green;">类别</td>
                        <td style="widht:40mm;align:center;border:1px solid green;">主持人</td>
                        <td style="width:10mm;align:center;border:1px solid green;">职称</td>
                        <td style="width:30mm;align:center;border:1px solid green;">参与人</td>
                    </tr>
                    <?php if ($projects): 
                    $k=1;
                    foreach($projects as $project): 
                        if($cqdd==$project['belong_cqdd']):?> 
                    <tr>
                        <td style="border:1px solid green;valign:middle;"><?php echo $k++;?></td>
                        <td style="border:1px solid green;valign:middle;"><?php echo html2pdf_word_wrap($project['name'],27);?></td>
                        <td style="border:1px solid green;"><?=$qlty_specity[$project['belong_specialty']]?></td>
                        <td style="border:1px solid green;"><?=$qlty_category[$project['category']]?></td>
                        <td style="border:1px solid green;"><?=$project['teacher_name']?></td>
                        <td style="border:1px solid green;"><?=$project['professional_title']?></td>
                        <td style="border:1px solid green;"><?php echo html2pdf_word_wrap($project['participants'],12);?></td>
                    </tr>
                    <?php endif;endforeach; ?>
                    <?php if($k==1):?>
                        <tr><td colspan="9" style="font-size:13mm">没有此类型的项目汇总数据，本页不需要打印！</td></tr>
                    <?php endif; ?>
                    <?php endif; //projects?>
                </table>
            </td>
            <td></td>
        </tr>
    </table>
    <?php if($k>1): ?>
    <div style="position: absolute; left: 35mm; bottom: 2mm; text-align:center; font-size: 3mm;">*注：请将此单打印签字、盖章后尽快交予<?php if($cqdd==1): ?>渝电大<?php endif;?>教务处项目管理科
    </div>
<?php endif; ?>
</page>